package com.ruanjian.api.mapper;

import com.ruanjian.api.bean.UserEarnings;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserEarningsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserEarnings record);

    int insertSelective(UserEarnings record);

    UserEarnings selectByPrimaryKey(Long id);

    /**
     * 根据用户id
     * @param userId
     * @return
     */
    List<UserEarnings> listUserEarningsByUserId(Long userId);

    UserEarnings listUserEarningsSelective(UserEarnings userEarnings);

    List<UserEarnings> listUserEarningsByUserIdAndStageId(UserEarnings userEarnings);

    int updateByPrimaryKeySelective(UserEarnings record);

    int updateByPrimaryKey(UserEarnings record);
}